package cn.edu.scau.cmi.dengzejun.chapter07;

public class E {
	public static void main(String agrs[]) {
		Dog yellowDog =new Dog();
		yellowDog.SetState(new SoftlyState());
		yellowDog.cry();
		yellowDog.SetState(new MeetEnemyState());
		yellowDog.cry();
		yellowDog.SetState(new MeetFriendState());
		yellowDog.cry();
		return;
	}
}
